package app.caihan.scframe.livedata

import androidx.lifecycle.MutableLiveData

/**
 * 自定义的Boolean类型 MutableLiveData 提供了默认值，避免取值的时候还要判空
 *
 * @author Seven-C
 * @date 2020/7/27
 */
class IntLiveData : MutableLiveData<Int>() {

    override fun getValue(): Int {
        return super.getValue() ?: 0
    }
}